package com.hushui.mall.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hushui.common.utils.PageUtils;
import com.hushui.mall.commodity.entity.AttrGroupEntity;
import com.hushui.mall.commodity.entity.vo.AttrGroupWithAttrVo;
import com.hushui.mall.commodity.vo.SpuItemAttrGroupVo;
import com.hushui.mall.commodity.entity.vo.SkuItemVo;


import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author miya
 * @email sunlightcs@gmail.com
 * @date 2023-03-16 11:38:46
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params,Long catelogId);
    PageUtils queryAttrGroupPage(Map<String, Object> params,Long attrgroupId);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
     /**
      * 根据spuid 查询属性分组和属性值
      * */
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

